package com.imooc.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 虚拟币结算表
 * </p>
 *
 * @author jobob
 * @since 2021-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TStatementCoin对象", description="虚拟币结算表")
public class TStatementCoin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "结算单号")
    private Long orderNo;

    @ApiModelProperty(value = "通行证编号")
    private String userId;

    @ApiModelProperty(value = "通行证账号")
    private String userName;

    @ApiModelProperty(value = "交易单号(对应订单信息表order_no)")
    private String tradeNo;

    @ApiModelProperty(value = "收支类型(0：支出  1：收入)")
    private Integer tradeType;

    @ApiModelProperty(value = "虚拟币类型(1：威点  2：星豆  3：时间账号)")
    private Integer coinType;

    @ApiModelProperty(value = "虚拟币数量")
    private Integer coinNum;

    @ApiModelProperty(value = "虚拟币单位")
    private String coinUnit;

    @ApiModelProperty(value = "结算时间")
    private LocalDateTime settleTime;

    @ApiModelProperty(value = "结算状态0=未结算,1=已结算")
    private Integer settleStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateUser;

    @ApiModelProperty(value = "出售订单ID,用于解冻虚拟币")
    private String saleId;

    @ApiModelProperty(value = "扣款状态0=未处理，1=已解冻，2=已扣款")
    private Integer deductionStatus;


}
